package com.cz.influxdb.test;


import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.Data;

import java.time.Instant;


@Data
@Measurement(name = "weather")
public class WeatherEntity {
    @Column(name = "location",tag = true)
    private String location;

    @Column(tag = false)
    private Double temperature;

    @Column
    private String date;

    @Column(tag = false)
    private Double humidity;

    @Column(timestamp = true)
    Instant time;
}
